package com.homestay.beans;

import java.util.Date;

/**
 * 订单表
 * @author dyx
 *
 */
public class OrderBean {

	//订单id
	private Integer o_id;
	
	//多对一，订单对用户
	private UserBean user;
	
	//多对一，订单对房源
	private HouseInfoBean house;
	
	//下单时间
	private Date o_orderTime;
	
	//付款状态
	private Integer o_payment;
	
	//入住时间
	private Date o_liveTime;
	
	//离店时间
	private Date o_leaveTime;
	
	//flag
	private int flag;

	public Integer getO_id() {
		return o_id;
	}

	public void setO_id(Integer o_id) {
		this.o_id = o_id;
	}

	
	public UserBean getUser() {
		return user;
	}

	public void setUser(UserBean user) {
		this.user = user;
	}

	public HouseInfoBean getHouse() {
		return house;
	}

	public void setHouse(HouseInfoBean house) {
		this.house = house;
	}
	
	public Date getO_orderTime() {
		return o_orderTime;
	}

	public void setO_orderTime(Date o_orderTime) {
		this.o_orderTime = o_orderTime;
	}

	public Integer getO_payment() {
		return o_payment;
	}

	public void setO_payment(Integer o_payment) {
		this.o_payment = o_payment;
	}

	public Date getO_liveTime() {
		return o_liveTime;
	}

	public void setO_liveTime(Date o_liveTime) {
		this.o_liveTime = o_liveTime;
	}

	public Date getO_leaveTime() {
		return o_leaveTime;
	}

	public void setO_leaveTime(Date o_leaveTime) {
		this.o_leaveTime = o_leaveTime;
	}

	public int getFlag() {
		return flag;
	}

	public void setFlag(int flag) {
		this.flag = flag;
	}

	@Override
	public String toString() {
		return "OrderBean [o_id=" + o_id + ", o_orderTime=" + o_orderTime
				+ ", o_payment=" + o_payment + ", o_liveTime=" + o_liveTime
				+ ", o_leaveTime=" + o_leaveTime + ", flag=" + flag + "]";
	}
	
	
}
